﻿<%@ Page Language="C#" MasterPageFile="~/User/User.Master" Title="物料资料" AutoEventWireup="true"
    CodeBehind="ZL_WL_Query.aspx.cs" Inherits="CoolERP_Web.User.ZL_WL_Query" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td class="tbHead_L"></td>
            <td class="tbHead_M"><div><b>物料管理</b></div></td>
            <td class="tbHead_R"></td>
        </tr>
        <tr>
            <td class="tbBody_L"></td>
            <td class="tbBody_M">
                <ul class="tags" style="width: 95%;">
                    <li class="liTitle"><div>查询条件</div></li>
                </ul>
                <table class="grvCSS" cellspacing="0" cellpadding="2" border="1" style="width: 95%; border-collapse: collapse;">
                    <tr>
                        <td>物料类型：<asp:DropDownList ID="ddlWLLX" runat="server" CssClass="dropdown" AutoPostBack="True" OnSelectedIndexChanged="ddlWLLX_SelectedIndexChanged" /></td>
                        <td>物料编号：<asp:TextBox ID="tbBH" runat="server" CssClass="textbox" MaxLength="64" /></td>
                        <td>物料名称：<asp:TextBox ID="tbMC" runat="server" CssClass="textbox" MaxLength="64" /></td>
                        <td>供应商：<asp:DropDownList ID="ddlGYSID" runat="server" CssClass="dropdown" /></td>
                        <td rowspan=3><asp:ImageButton ID="btnQuery" runat="server" ImageUrl="~/Images/Common/btn_query0.png" OnClick="btnQuery_Click" />
                        <asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/Common/btn_reset0.png" OnClick="btnReset_Click" /></td>
                    </tr>
                    <tr id="tr1" runat=server visible=false>
                        <td align="right" id="td1" runat="server" visible="false"><asp:Label ID="Label1" runat=server/><asp:DropDownList ID="DropDownList1" runat="server" CssClass="dropdown" Width="154px" /></td>
                        <td align="right" id="td2" runat="server" visible="false"><asp:Label ID="Label2" runat=server/><asp:DropDownList ID="DropDownList2" runat="server" CssClass="dropdown" Width="154px" /></td>
                        <td align="right" id="td3" runat="server" visible="false"><asp:Label ID="Label3" runat=server/><asp:DropDownList ID="DropDownList3" runat="server" CssClass="dropdown" Width="154px" /></td>
                        <td align="right" id="td4" runat="server" visible="false"><asp:Label ID="Label4" runat=server/><asp:DropDownList ID="DropDownList4" runat="server" CssClass="dropdown" Width="154px" /></td>
                    </tr>
                    <tr id="tr2" runat=server visible=false>
                        <td align="right" id="td5" runat="server" visible="false"><asp:Label ID="Label5" runat=server/><asp:DropDownList ID="DropDownList5" runat="server" CssClass="dropdown" Width="154px" /></td>
                        <td align="right" id="td6" runat="server" visible="false"><asp:Label ID="Label6" runat=server/><asp:DropDownList ID="DropDownList6" runat="server" CssClass="dropdown" Width="154px" /></td>
                        <td align="right" id="td7" runat="server" visible="false"><asp:Label ID="Label7" runat=server/><asp:DropDownList ID="DropDownList7" runat="server" CssClass="dropdown" Width="154px" /></td>
                        <td align="right" id="td8" runat="server" visible="false"><asp:Label ID="Label8" runat=server/><asp:DropDownList ID="DropDownList8" runat="server" CssClass="dropdown" Width="154px" /></td>
                    </tr>
                </table>
                <ul class="tags" style="width: 95%;">
                    <li class="liTitle"><div>物料列表</div></li>
                    <li class="liRight"><a href="ZL_WL_Edit.aspx"><img src="../Images/Common/btn_add0.png" border=0 /></a>&nbsp;&nbsp;
                        <asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/Images/Common/btn_del0.png" OnClick="btnDel_Click" OnClientClick="return isCheck('GridView1');" /></li>
                </ul>
                <asp:GridView ID="GridView1" runat="server" DataKeyNames="ID" Width="95%" CssClass="grvCSS"
                    AutoGenerateColumns="False" AllowPaging="True" PageSize="20" ClientIDMode="Static"
                    OnRowDataBound="GridView1_RowDataBound">
                    <Columns>
                        <asp:TemplateField ShowHeader="False">
                            <HeaderTemplate><label><input type="checkbox" onclick="checkAll('GridView1',this)" />全选</label></HeaderTemplate>
                            <ItemTemplate><input type="checkbox" id="chkSel" name="chkSel" runat="server" value='<%# Eval("ID") %>' /></ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="物料编号" DataField="BH" />
                        <asp:BoundField HeaderText="物料名称" DataField="MC" />
                        <asp:BoundField HeaderText="规格" DataField="GG" />
                        <asp:TemplateField HeaderText="颜色">
                            <ItemTemplate><asp:Literal ID="liYS" runat="server" /></ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="库存单位">
                            <ItemTemplate><asp:Literal ID="liDW" runat="server" /></ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="物料类型">
                            <ItemTemplate><asp:Literal ID="liWLLX" runat="server" /></ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="供应商">
                            <ItemTemplate><asp:Literal ID="liGYS" runat="server" /></ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate><a href="ZL_WL_Edit.aspx?id=<%# Eval("ID") %>"><img src="../Images/Common/btn_edit0.png" border=0 /></a></ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings Visible="false" />
                </asp:GridView>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager"
                    UrlPaging="false" ShowCustomInfoSection="Left" FirstPageText="首页" LastPageText="尾页"
                    PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox"
                    ShowPageIndexBox="Always" SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
                </webdiyer:AspNetPager>
                <asp:Panel ID="panMsg" runat="server" ClientIDMode="Static" CssClass="msg24_attention"
                    Visible="false">
                    无相关数据</asp:Panel>
            </td>
            <td class="tbBody_R">
            </td>
        </tr>
        <tr>
            <td class="tbFoot_L">
            </td>
            <td class="tbFoot_M">
            </td>
            <td class="tbFoot_R">
            </td>
        </tr>
    </table>
</asp:Content>
